import request from '@/utils/request'

// 查询知识文档列表
export function listAiKnowledgeFile(query) {
    return request({
        url: '/ai/knowledgeFile/list',
        method: 'post',
        data: query
    })
}

// 查询知识文档详细
export function getAiKnowledgeFile(id) {
    return request({
        url: '/ai/knowledgeFile/detail/' + id,
        method: 'get'
    })
}

// 新增知识文档
export function addAiKnowledgeFile(data) {
    return request({
        url: '/ai/knowledgeFile/save',
        method: 'post',
        data: data
    })
}

// 修改知识文档
export function updateAiKnowledgeFile(data) {
    return request({
        url: '/ai/knowledgeFile/update',
        method: 'put',
        data: data
    })
}

// 删除知识文档
export function delAiKnowledgeFile(id) {
    return request({
        url: '/ai/knowledgeFile/remove/' + id,
        method: 'delete'
    })
}
